<?php
class Url extends Object
{
    protected $relative;

    public function Url($relative = null)
    {
        $this->relative = $relative;
    }

    public function GetCdn()
    {
        return $this->GetAbsolute();
    }

    public function GetAbsolute()
    {
        return AppConfig::GetInstance()->HTTP_HOST.$this->relative;
    }

    public function ToString()
    {
        return $this->relative;
    }
}
?>
